package com.zhihuishu.micro.course.dto;

import java.io.Serializable;
import java.util.Date;

/**
 */
public class CourseFolderDto implements Serializable,TreenityDto{
    private static final long serialVersionUID = 1L;

	private Integer id; // 文件夹id
	private String name; //文件夹名称
	private Integer isDeteled = 0;//默认删除状态 0未删除  1 已删除
	private Long userId;//用户id
	private String userName;//用户姓名
	private Date updateTime;//更新时间
	private Date createTime;//创建时间
	private Long courseId;//课程id
	private Long ccCourseId;//ccCourseId;

	private Long parentId;//父文件夹id;
    private Integer privilege;//文件夹的权限 0 所有人可看 1 仅老师可看 默认 0;

	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getIsDeteled() {
		return isDeteled;
	}
	public void setIsDeteled(Integer isDeteled) {
		this.isDeteled = isDeteled;
	}
	public Long getUserId() {
		return userId;
	}
	public void setUserId(Long userId) {
		this.userId = userId;
	}
	
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Long getCourseId() {
		return courseId;
	}
	public void setCourseId(Long courseId) {
		this.courseId = courseId;
	}
	public Long getCcCourseId() {
		return ccCourseId;
	}
	public void setCcCourseId(Long ccCourseId) {
		this.ccCourseId = ccCourseId;
	}

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getPrivilege() {
        return privilege;
    }

    public void setPrivilege(Integer privilege) {
        this.privilege = privilege;
    }

    @Override
    public Integer getRank() {
        return null;
    }

    @Override
    public Long getOneToManyId() {
        return getCourseId();
    }

    @Override
    public String toString() {
        return "CourseFolderDto{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", isDeteled=" + isDeteled +
                ", userId=" + userId +
                ", userName='" + userName + '\'' +
                ", updateTime=" + updateTime +
                ", createTime=" + createTime +
                ", courseId=" + courseId +
                ", ccCourseId=" + ccCourseId +
                ", parentId=" + parentId +
                ", privilege=" + privilege +
                '}';
    }
}
